package com.aaa.controller;

import com.aaa.entity.ResultMsg;
import com.aaa.service.TypeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("type")
public class TypeController {
    @Resource
    TypeService typeService;
    @RequestMapping("find")
    public ResultMsg select(){
        return ResultMsg.success( typeService.list());
    }
}
